# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin
from .models import Article, Person


# Register your models here.
# 添加后台要显示的字段
class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title', 'pub_date', 'update_time',)


class PersonAdmin(admin.ModelAdmin):
    list_display = ('full_name',)


# 注册后台管理的模型
admin.site.register(Article, ArticleAdmin)
# 在列表显示与字段相关的其它内容
admin.site.register(Person, PersonAdmin)
